/**
 * Project Name:UnifiedPayService.java
 * File Name:UnifiedPayService.java
 * Date:2018/7/28 下午2:15
 * Copyright (c) 2018, zhang.xiangyu@foxmail.com All Rights Reserved.
*/
package com.meatball.base.pay.order.service;

import com.meatball.base.pay.order.vo.PayOrderParams;
import com.meatball.vo.ResultMsg;

import javax.servlet.http.HttpServletRequest;

/**
 * @Title: UnifiedPayService.java
 * @Description: todo(统一支付服务类)
 * @Author 張翔宇
 * @Date 2018/7/28 下午2:15
 * @Version V1.0
 */
public interface UnifiedPayService {

    /**
     * 统一支付下单
     * @param params
     * @return ResultMsg
     */
    ResultMsg unifiedPay(PayOrderParams params);

    /**
     * 统一扫码解析
     * @param id
     * @param ua
     * @return ResultMsg
     * @throws Exception
     */
    ResultMsg payment(Long id, String ua) throws Exception;

    /**
     * 支付回调
     * @param request
     * @return
     */
    ResultMsg alipayCallback(HttpServletRequest request) throws Exception;
}
